package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.Activity;
import cn.com.connext.scrm.domain.master.Gift;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: organization-service
 * @author: shawn
 * @create: 2019-06-14 16:32
 **/
@Repository
public interface GiftRepository extends JpaRepository<Gift,String>, JpaSpecificationExecutor {

    @Query("select g from Gift g where g.isAutoSend = true")
    List<Gift> findEnabldAll();
}
